package code._16reflect._02cls;



public class Demo {
    public static void main(String[] args) throws ClassNotFoundException {
        Student student = new Student();
        //获取Class的方法
        //法一
        Class<? extends Student> c1 = student.getClass();
        //法二
        Class<Student> c2 = Student.class;
        System.out.println(c1==c2);
        //法三
        Class<?> c3 = Class.forName("code._16reflect._02cls.Student");
        System.out.println(c1==c3);
        //法四
        Class<?> c4 = ClassLoader.getSystemClassLoader().loadClass("code._16reflect._02cls.Student");
        System.out.println(c1==c4);

    }
}

class Student{

}
